<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once template('head');
echo <<<EOT
-->

<title>{$lang_parameterTitle}</title>

</head>
<body>
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1" >
          <tr> 
            <td colspan="7" align="center" class="list1_title">$p_title</td>
		 </tr>
<!--
EOT;
if($action=='addsave'){
echo <<<EOT
--> 
		   <tr align="center" height="30"> 
			<td class="list1_submit" colspan="7"><a href="parameter.php?lang=$lang&module=$module"><b>{$lang_parameterview}</b></a></td>
          </tr>
<!--
EOT;
}else{
echo <<<EOT
-->
		   <tr align="center" height="30"> 
			<td class="list1_submit" colspan="7"><a href="parameter.php?lang=$lang&action=addsave&module=$module"><b>{$lang_parameteradd}</b></a></td>
          </tr>
<!--
EOT;
}
echo <<<EOT
-->
          <tr> 
            <td width="7%" class="list1_top" align="center">{$lang_sort}</td>
            <td width="18%" class="list1_top" align="center">{$lang_name}</td>
<!--
EOT;
if($module<6){
if($action=='addsave'){
echo <<<EOT
-->
			<td width="20%" class="list1_top" align="center">{$lang_category}</td>
<!--
EOT;
}else{
echo <<<EOT
-->
			<td width="20%" class="list1_top" align="center">
			<select name="category"  onchange='javascript:window.location.href=this.options[this.selectedIndex].value'>
			<option value="parameter.php?lang=$lang&module=$module" selected="selected">{$lang_category}</option>
<!--
EOT;
foreach($met_classindex[$module] as $key=>$val1){
if($class1==$val1[id])$gclass="selected='selected'";
echo <<<EOT
-->
			  <option value="parameter.php?lang=$lang&module=$module&class1=$val1[id]" $gclass>{$val1[name]}</option>
<!--
EOT;
$gclass="";
}
echo <<<EOT
-->
            </select>
			</td>
<!--
EOT;
}}
if($met_member_use){
echo <<<EOT
-->
			<td width="15%" class="list1_top" align="center">{$lang_webaccess}</td>
<!--
EOT;
}
echo <<<EOT
-->
			<td width="12%" class="list1_top" align="center">{$lang_parametertype}</td>
			<td width="8%" class="list1_top" align="center">{$lang_parameterMust}</td>
            <td width="20%" class="list1_top" align="center">{$lang_operate}</td>
          </tr>
<!--
EOT;
if($action=='addsave'){
echo <<<EOT
-->
<form method="POST" name="myform"  action="parameter.php?lang=$lang&action=add&module=$module" target="_self">
<input name='access_0' type="hidden" value="0">
			<tr align="center"> 
			<td class="list1_content" align="center"><input name='no_order_0' type="text" class="input" size="1" maxlength="10" ></td>
            <td class="list1_content"><input name='name_0' type="text" class="input" size="15" ></td>
<!--
EOT;
if($module<6){
echo <<<EOT
-->			
			<td class="list1_content">
			<select name="class1_0" >
			<option value="0" selected="selected">{$lang_allcategory}</option>
<!--
EOT;
foreach($met_classindex[$module] as $key=>$val1){
echo <<<EOT
-->
			  <option value="$val1[id]" >{$val1[name]}</option>
<!--
EOT;
$gclass1="";
}
echo <<<EOT
-->
            </select></td>
<!--
EOT;
}
if($met_member_use){
echo <<<EOT
-->
			<td class="list1_content"><select name="access_0" id="access" >
              <option value="0">{$lang_access0}</option>
			  <option value="1" >{$lang_access1}</option>
              <option value="2" >{$lang_access2}</option>
              <option value="3" >{$lang_access3}</option>
            </select></td>
<!--
EOT;
}
echo <<<EOT
-->
			<td class="list1_content"><select name="type_0" id="access" >
			  <option value="1" >{$lang_parameter1}</option>
              <option value="2" >{$lang_parameter2}</option>
              <option value="3" >{$lang_parameter3}</option>
			  <option value="4" >{$lang_parameter4}</option>
			  <option value="5" >{$lang_parameter5}</option>
			  <option value="6" >{$lang_parameter6}</option>
            </select></td>
            <td class="list1_content" align="center"><input type="checkbox" name=wr_ok_0 value=1 class="xz" /></td>
			<td class="list1_content" align="center"><input type="submit" name="Submit" value="{$lang_add}" class="tj" style="*padding-top:2px; *height:22px;"></td>
		  </tr>
</form>
<!--
EOT;
}else{
echo <<<EOT
-->	
<form method="POST" name="myform"  action="parameter.php?lang=$lang&action=editor&module=$module&class1=$class1" target="_self">
<!--
EOT;
foreach($list as $key=>$val){
echo <<<EOT
-->		   
<input name='$val[id]' type="hidden" value="$val[id]">
<input name='access_$val[id]' type="hidden" value="$val[access]">
			<tr align="center"> 
			<td class="list1_content" align="center"><input name='no_order_$val[id]' type="text" class="input" size="1" maxlength="10" value="$val[no_order]"></td>
            <td class="list1_content"><input name='name_$val[id]' type="text" class="input" size="15"  value="$val[name]" ></td>
<!--
EOT;
if($module<6){
echo <<<EOT
-->				
			<td class="list1_content">
			<select name="class1_$val[id]" >
			<option value="0" selected="selected">{$lang_allcategory}</option>
<!--
EOT;
foreach($met_classindex[$module] as $key=>$val1){
if($val[class1]==$val1[id])$gclass1="selected='selected'";
echo <<<EOT
-->
			  <option value="$val1[id]" $gclass1>{$val1[name]}</option>
<!--
EOT;
$gclass1="";
}
echo <<<EOT
-->
            </select></td>
<!--
EOT;
}
if($met_member_use){
echo <<<EOT
-->
			<td class="list1_content"><select name="access_$val[id]" id="access" >
              <option value="0" $val[access0]>{$lang_access0}</option>
			  <option value="1" $val[access1]>{$lang_access1}</option>
              <option value="2" $val[access2]>{$lang_access2}</option>
              <option value="3" $val[access3]>{$lang_access3}</option>
            </select></td>
<!--
EOT;
}
echo <<<EOT
-->
			<td class="list1_content"><select name="type_$val[id]" id="access" >
			  <option value="1" $val[type1]>{$lang_parameter1}</option>
              <option value="2" $val[type2]>{$lang_parameter2}</option>
              <option value="3" $val[type3]>{$lang_parameter3}</option>
			  <option value="4" $val[type4]>{$lang_parameter4}</option>
			  <option value="5" $val[type5]>{$lang_parameter5}</option>
			  <option value="6" $val[type6]>{$lang_parameter6}</option>
            </select></td>
            <td class="list1_content" align="center"><input type="checkbox" name=wr_ok_$val[id] value=1 class="xz" $val[wr_ok]/></td>
			<td class="list1_content" align="center">
<!--
EOT;
if($val[type]==2 or $val[type]==4 or $val[type]==6){  
echo <<<EOT
-->
			<a href="list.php?bigid=$val[id]&lang=$lang">{$lang_listTitle}</a> | 
<!--
EOT;
}
echo <<<EOT
-->
			<a href="parameter.php?id=$val[id]&action=delete&bigid=$val[id]&lang=$lang&type=$val[type]&module=$module&class1=$class1" onClick="return ConfirmDel();">{$lang_delete}</a></td>
		  </tr>
<!--
EOT;
}
echo <<<EOT
-->  
          <tr align="center" height="30"> 
			<td class="list1_submit" colspan="7" style="text-align:center; margin:5px 0px;"><input type="submit" name="Submit" value="{$lang_Submit}" class="tj" style="*padding-top:2px; *height:22px;"></td>
          </tr>
        </form>
<!--
EOT;
}
echo <<<EOT
--> 
    <tr>
		  <td class="list1_footer" colspan="7" align="center">$foot</td>
	  </tr>
</table>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->